package com.cubeofnine.sugar.activity.export_contact;

import com.cubeofnine.sugar.service.element.ReturnAddContactList;

import android.content.Context;
import android.util.Log;

public class SyncUpContactsListRunnable implements Runnable {
	private Context context;
	private ReturnAddContactList result;
	private String errorMessage;

	public SyncUpContactsListRunnable(Context context,
			ReturnAddContactList result, String errorMessage) {
		this.context = context;
		this.result = result;
		this.errorMessage = errorMessage;
	}

	public String getClassName() {
		return SyncUpContactsListRunnable.class.getName();
	}

	public void run() {
		Log.i(getClassName(), "run() : Start");

		((ExportContactsListActivity) context)
				.resultSyncProcess(result, errorMessage);

		Log.i(getClassName(), "run() : End");
	}

}
